package sqlToGUI.testing.sendingInput;



public class DataCreator {

	protected final int inputLength = 4;
	
	public double inc1 = 1.0;
	public double inc2 = 1.0;
	
	public String fixDataLength(String input, int length){
		int diff = length - input.length();
		for(int i = 0; i < diff; i++){
			input = "0" + input;
		}
		
		if(input.length() > length){
			input = input.substring(0,4);
		}
		
		return input;
	}
	
	public int sim1(){
		int t = (int)(100*Math.sin(inc1/10)*Math.sin(inc1/10));
		inc1++;
		return t;
	}
	public int sim2(){
		int t = (int)(50*Math.cos(inc1/10)*Math.cos(inc1/10));
		inc1++;
		return t;
	}
}
